<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>未设置float时的元素定位</title>
<style type="text/css">
<!--
body{
	margin:15px;
	font-family:Arial;
	font-size:12px;
}
.father{
	background-color:#fffea6;
	border:1px solid #111111;
	padding:25px;
}
.son1{
	padding:10px;
	margin:5px;
	background-color:#70baff;
	border:1px dashed #111111;
}
.son2{
	padding:5px;
	margin:0px;
	background-color:#ffd270;
	border:1px dashed #111111;
}
-->
</style>
	<title>div元素定位</title></head>
<body>
	<div class="father">
		<div class="son1">float1</div>
		<div class="son2">float2</div>
	</div>
	<h2>
		<font color="#FF0000">注意：float1子块与父块左侧内边距padding为25px+5px=30px<br />
		float2子块与父块左侧内边距padding为25px<br />
		float1与float2子块之间外边距margin为最大的那个数值：5px<br>
		</font>
	</h2>
</body>
</html>